/**
 * Created by linxh on 2015/5/29.
 */
define('../../html/demo/dropdown/testDropdownModule', [
    'angular',
    'framework/dropdown/GillionDropdownModule',

], function (angular) {
    var GillionMessageModule = angular.module('testDropdownModule', ['GillionDropdownModule'], ['$compileProvider', function ($compileProvider) {

    }]);
    GillionMessageModule.controller('DropdownController',["$scope",function($scope){

        $scope.test2="1,2";

        $scope.roles = [
            {roleId: 1, roleName: '管理员'},
            {roleId: 2, roleName: '数据录入员'},
            {roleId: 3, roleName: '普通用户'}
        ];
        $scope.roles2 = [
            {roleId: 1, roleName: '管理员'},
            {roleId: 2, roleName: '数据录入员'},
            {roleId: 3, roleName: '普通用户'}
        ];
        $scope.roles3 = [
            {roleId: 1, roleName: '管理员'},
            {roleId: 2, roleName: '数据录入员'},
            {roleId: 3, roleName: '普通用户'}
        ];
        $scope.roles4 = [
            {roleId: 1, roleName: '管理员'},
            {roleId: 2, roleName: '数据录入员'},
            {roleId: 3, roleName: '普通用户'}
        ];
        $scope.roles5 = [
            {roleId: 1, roleName: '管理员'},
            {roleId: 2, roleName: '数据录入员'},
            {roleId: 3, roleName: '普通用户'}
        ];
        $scope.addEle = function(){
            var roleId=prompt("请输入角色id","4");
            var roleName=prompt("请输入角色名","超级用户");
            $scope.roles4.push({roleId:roleId,roleName:roleName});
        };

        $scope.addEvent = function(){
            var roleId=prompt("请输入角色id","4");
            var roleName=prompt("请输入角色名","超级用户");
            $scope.roles4.push({roleId:roleId,roleName:roleName});
        }
    }]);
    return GillionMessageModule;
})
